<table id="coupon_table" ref="Coupon" class="table" width="100%" border="0" cellspacing="1" cellpadding="0">
		<thead class="state-header">
		  <tr>
		  
		  	  <td  width="40" tdid="0" align="center">
			 	选择
			  </td>
		  	
		 
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"id")||fields=="*"||(!fields && true)}}' tdid="1" ref="id"   title="编号">
			 	编号
			 </td>
		 
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"discount")||fields=="*"||(!fields && true)}}' tdid="2" ref="discount"   title="折扣">
			 	折扣
			 </td>
		 
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"commodity")||fields=="*"||(!fields && true)}}' tdid="3" ref="commodity"   title="适用产品">
			 	适用产品
			 </td>
		 
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"uid")||fields=="*"||(!fields && true)}}' tdid="4" ref="uid"   title="用户编号">
			 	用户编号
			 </td>
		 
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"nickName")||fields=="*"||(!fields && true)}}' tdid="5" ref="nickName"   title="用户昵称">
			 	用户昵称
			 </td>
		 
			 <td width="{{fields=='*'?'140':''}}" lz:if='{{lz.idin(fields,"dayRemain")||fields=="*"||(!fields && true)}}' tdid="6" ref="dayRemain"   title="有效期">
			 	有效期
			 </td>
		 
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"sources")||fields=="*"||(!fields && true)}}' tdid="7" ref="sources"   title="优惠券名称">
			 	优惠券名称
			 </td>
		 
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"useStatus")||fields=="*"||(!fields && true)}}' tdid="8" ref="useStatus"   title="使用情况">
			 	使用情况
			 </td>
		 
			 <td width="{{fields=='*'?'140':''}}" lz:if='{{lz.idin(fields,"updateTime")||fields=="*"||(!fields && true)}}' tdid="9" ref="updateTime"   title="修改时间">
			 	修改时间
			 </td>
		 
			 <td width="{{fields=='*'?'140':''}}" lz:if='{{lz.idin(fields,"addTime")||fields=="*"||(!fields && true)}}' tdid="10" ref="addTime"   title="添加时间">
			 	添加时间
			 </td>
		 
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"status")||fields=="*"||(!fields && true)}}' tdid="11" ref="status"   title="状态">
			 	状态
			 </td>
		 
			<td  width="65" tdid="12" class="options" ref="options">操作</td>
			<td class="operation" tdid="13" ref="operation" style="width:120px;"> 
				&nbsp;
			</td>
		  </tr>
		 </thead>	
		 <tbody>
		 
		  <tr lz:for="{{list}}" id="{{item.id}}" >
		  	<td class="td-checkbox" align="center">
				<input class="check" name="check" type="checkbox" value="{{item.id}}"/>
			</td>
			
		    
				<td lz:if='{{lz.idin(fields,"id")||fields=="*"||(!fields && true)}}' ref="id" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 
					 
					 	{{item.id$ || item.id}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"discount")||fields=="*"||(!fields && true)}}' ref="discount" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 
					 
					 	{{item.discount$ || item.discount}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"commodity")||fields=="*"||(!fields && true)}}' ref="commodity" class="inc {{index%2==0?'odd':'even'}} td " relate="{{item.commodity}}">
					 
					 
					 
					 
					 	<a onclick="window.href('{{basePath}}manage/goods/commodity.detail.html?key={{item.commodity}}')" href="javascript:void(0);">
					 	
					 
					 	{{item.commodity$ || item.commodity}}
					 </a> 
				</td>
		  
				<td lz:if='{{lz.idin(fields,"uid")||fields=="*"||(!fields && true)}}' ref="uid" class="inc {{index%2==0?'odd':'even'}}  ">
					 
					 
					 
					 
					 	{{item.uid$ || item.uid}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"nickName")||fields=="*"||(!fields && true)}}' ref="nickName" class="inc {{index%2==0?'odd':'even'}}  ">
					 
					 
					 
					 
					 	{{item.nickName$ || item.nickName}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"dayRemain")||fields=="*"||(!fields && true)}}' ref="dayRemain" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 
					 
					 	{{item.dayRemain$ || item.dayRemain}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"sources")||fields=="*"||(!fields && true)}}' ref="sources" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 
					 
					 	{{item.sources$ || item.sources}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"useStatus")||fields=="*"||(!fields && true)}}' ref="useStatus" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 
					 
					 	{{item.useStatus$ || item.useStatus}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"updateTime")||fields=="*"||(!fields && true)}}' ref="updateTime" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 
					 
					 	{{item.updateTime$ || item.updateTime}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"addTime")||fields=="*"||(!fields && true)}}' ref="addTime" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 
					 
					 	{{item.addTime$ || item.addTime}}
					  
				</td>
		  
				<td lz:if='{{lz.idin(fields,"status")||fields=="*"||(!fields && true)}}' ref="status" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 
					 
					 	{{item.status$ || item.status}}
					  
				</td>
		  
		  
		  
			<td class="options">
				
			</td>
			<td class="operation {{index%2==0?'odd':'even'}}">
				
				<a onclick='navigate("/manage/coupons/coupon.edit.html",{edittype:"update",id:"{{item.id}}"},window)' href="javascript:void(0)">修改</a>
				
				
				
				<a class="inc-h" onclick='top.$.open("/manage/coupons/coupon.edit.html",{edittype:"detail",id:"{{item.id}}"},window)' href="javascript:void(0);">详情</a>
				
			</td>
		  </tr>
		 
		 </tbody>
		 		 
	  </table>